package com.hh.system.util;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.hh.system.util.model.ClassJsModel;

public class StaticVar {
	public static String webappPath = ServletActionContext
			.getServletContext()
			.getRealPath("")
			.substring(
					0,
					ServletActionContext.getServletContext().getRealPath("")
							.lastIndexOf("\\"));
	public static String contextPath = ServletActionContext.getRequest()
			.getContextPath();
	public static String filebasepath = "/uploadfile/";
	public static String filepath = webappPath + filebasepath;
	public static String projectPath = ServletActionContext.getServletContext()
			.getRealPath("");
	public static String ORDER = "order";
	public static String JSP = "jsp";
	public static Map<String, ClassJsModel> resource_js_map = new HashMap<String, ClassJsModel>();
	public static Map<String, InputStream> resource_img_map = new HashMap<String, InputStream>();
}
